﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class renwu:NPC 
    {
        private string renwu1;

        public string Renwu
        {
            get => renwu1; set => renwu1 = value;
        }
        public renwu(string name, NPCleixing leixing, string renwu1) : base(name, leixing)
        {
            this.Renwu  = renwu1;
        }

        public override void Speak()
        {
            Console.WriteLine("能帮我做件事吗？： 任务要求：{0}", this.renwu1);
            Console.WriteLine("NPC：{0}", base.name1);
        }
    }
}
